/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: GoodsbillEventServiceImpl
 * Author:   李毅
 * Date:     2019/10/28 19:51
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.ymtms.supplycar.service.impl;

import com.ymtms.supplycar.dao.GoodsbillEventMapper;
import com.ymtms.supplycar.exception.CarException;
import com.ymtms.supplycar.service.GoodsbillEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author 李毅
 * @create 2019/10/28
 * @since 1.0.0
 */
@Service
public class GoodsbillEventServiceImpl implements GoodsbillEventService {

    @Autowired
    GoodsbillEventMapper goodsbillEventMapper;

    @Override
    public void updateEvent(Integer gmid) {
        int row = goodsbillEventMapper.updateEventName(gmid);
        if (row == 0) {
            throw new CarException("修改失败，请重试！");
        }
    }
}